const reducer = (state = {}, action) => {
  switch (action.type) {
    case "UPDATETOKEN":
      state.data = localStorage.getItem("Token");
      break;
    case "DELETETOKEN":
      localStorage.setItem("Token", "");
      state.data = "";
      break;
    default:
      break;
  }
  return state;
};

export default reducer;
